import request from '@/utils/request'

// 查询接取任务关系列表
export function listReceiveTask(query) {
  return request({
    url: '/system/receiveTask/list',
    method: 'get',
    params: query
  })
}

// 查询接取任务关系详细
export function getReceiveTask(id) {
  return request({
    url: '/system/receiveTask/' + id,
    method: 'get'
  })
}

// 新增接取任务关系
export function addReceiveTask(data) {
  return request({
    url: '/system/receiveTask',
    method: 'post',
    data: data
  })
}

// 修改接取任务关系
export function updateReceiveTask(data) {
  return request({
    url: '/system/receiveTask',
    method: 'put',
    data: data
  })
}

// 审批
export function auditTask(data) {
  return request({
    url: '/system/receiveTask/auditTask',
    method: 'post',
    data: data
  })
}

// 删除接取任务关系
export function delReceiveTask(id) {
  return request({
    url: '/system/receiveTask/' + id,
    method: 'delete'
  })
}
